import request from '@/utils/request'

// 查询收款合同列表
export function listContractInformation(query) {
  return request({
    url: '/web/contractInformation/list',
    method: 'get',
    params: query
  })
}

// 查询收款合同详细
export function getContractInformation(id) {
  return request({
    url: '/web/contractInformation/' + id,
    method: 'get'
  })
}

// 新增收款合同
export function addContractInformation(data) {
  return request({
    url: '/web/contractInformation',
    method: 'post',
    data: data
  })
}

// 修改收款合同
export function updateContractInformation(data) {
  return request({
    url: '/web/contractInformation',
    method: 'put',
    data: data
  })
}

// 删除收款合同
export function delContractInformation(id) {
  return request({
    url: '/web/contractInformation/' + id,
    method: 'delete'
  })
}
